-- GENERATED SPELL FOR [Steel Gate Excavator] --


function spell0_24398(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24398', 646, 1)
end

function Sorts_24398(pUnit, Event)
local choix_sorts_24398 = math.random(0, 0)
if choix_sorts_24398 == 0 then
pUnit:RegisterEvent('spell0_24398', 1, 1)
end
end

function mob24398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24398', math.random(1500, 3000), 1)
end

function mob24398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24398, 1, 'mob24398_Action')
RegisterUnitEvent(24398, 2, 'mob24398_Leave')
RegisterUnitEvent(24398, 3, 'mob24398_Kill')
RegisterUnitEvent(24398, 4, 'mob24398_Die')
